package com.wanmait.zaisousuo.service;

import com.github.pagehelper.PageInfo;
import com.wanmait.zaisousuo.pojo.Question;
import com.wanmait.zaisousuo.util.Pager;

import java.util.List;

public interface QuestionService extends CommonService<Question>{
    PageInfo<Question> findList(Integer pageNum,Integer garbageTypeId,Integer textureId);

    void realDelete(Integer id);

    Integer updateDisabled(Integer id,boolean disabled);

    void recover(String ids);

    List<Question> findByTime(String startTime, String endTime);

    PageInfo<Question> findByUserId(Integer pageNum,Integer id);

    List<Question> findQuestion(String keyword, Integer pageNum, Pager pager);

    Integer getDateCount(String keyword,Integer pageNum);

    void clearCache();
}
